/*
 * @Description: 
 * @Author: 亢超
 * @Date: 2024-11-14 11:16:18
 * @LastEditTime: 2024-11-14 11:46:45
 */
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    proxy: {
      //会对项目中发起的请求进行拦截(请求里必须包含/api)。
      '/api': {
        target: 'https://paidao.gzy88.cn/public/index.php/v1',//项目请求地址
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  },
})
